//
//  NSData+XMKit.m
//  XMKit
//
//  Created by chenming on 2018/5/29.
//  Copyright © 2018年 ChenXiaoMing. All rights reserved.
//

#import "NSData+XMKit.h"

@implementation NSData (XMKit)

+ (nullable NSData *)dataNamed:(NSString *_Nonnull)name {
    NSString *path = [[NSBundle mainBundle] pathForResource:name ofType:@""];
    if (!path) return nil;
    NSData *data = [NSData dataWithContentsOfFile:path];
    return data;
}

@end
